package com.wing.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.order.model.entity.InventoryJobLabel;
import com.wing.order.model.entity.OrderReceive;
import com.wing.order.model.request.OrderReceiveForm;
import com.wing.order.model.response.OrderReceiveVO;

import java.util.List;
import java.util.Map;

/**
 * 领货单-Service
 *
 * @author
 */
public interface OrderReceiveService extends IService<OrderReceive> {

    /**
     * 添加
     *
     * @param orderReceiveForm
     * @return
     */
    int add(OrderReceiveForm orderReceiveForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<OrderReceiveVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<OrderReceiveVO> pageList4app(Page page, Map<String, Object> params);

    Page<OrderReceiveVO> pageListLoading4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    OrderReceiveVO get4appById(Long id);

    void receive(Long id);

    void save(OrderReceiveForm orderReceiveForm);

    void save4app(OrderReceiveForm orderReceiveForm);

    void receiveSubmit(List<InventoryJobLabel> list);
}
